package itsm.isperp.module.repository.app;

import itsm.isperp.framework.data.domain.DataRequest;
import itsm.isperp.framework.data.domain.DataResponse;
import itsm.isperp.framework.data.mybatis.dao.TreeNodeMapper;
import itsm.isperp.module.dto.app.VAppDepartmentUser;
import itsm.isperp.module.entity.app.AppDepartment;

import java.util.List;

/**
 * 
 * 
 * @author lizx
 * @date 2013-3-1
 * @version V1.0
 */
public interface AppDepartmentMapper extends TreeNodeMapper<AppDepartment> {

	/**
	 * 根据父级id查找
	 * 
	 * @param parentId
	 *            父级id
	 * @return 列表
	 */
	public List<AppDepartment> findByParentId(String parentId);

	/**
	 * 根据请求查询部门人员
	 * 
	 * @param req
	 *            数据请求
	 * @return 部门人员列表
	 */
	public DataResponse<VAppDepartmentUser> findAllUserByRequest(DataRequest req);

}